]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdm: fix handling of removed smartcard at startup
authorRay Strode <rstrode@redhat.com>
Fri, 14 Nov 2014 20:57:16 +0000 (15:57 -0500)
committerRay Strode <rstrode@redhat.com>
Mon, 16 Mar 2015 17:45:50 +0000 (13:45 -0400)
If a smartcard is missing from the reader when we start up,
and the system is configured to disable password authentication,
then we need to ask the user to insert their smartcard.

This commit fixes that.

https://bugzilla.gnome.org/show_bug.cgi?id=740143

js/gdm/util.js

index 4bfaf7c2794008b922d3435f21adb781142759ba..6286b84fc15d2888a14f4d581c467d7f7224368e 100644 (file)
@@ -410,7 +410,7 @@ const ShellUserVerifier = new Lang.Class({
     _updateDefaultService: function() {
         if (this._settings.get_boolean(PASSWORD_AUTHENTICATION_KEY))
             this._defaultService = PASSWORD_SERVICE_NAME;
-        else if (this.smartcardDetected)
+        else if (this._settings.get_boolean(SMARTCARD_AUTHENTICATION_KEY))
             this._defaultService = SMARTCARD_SERVICE_NAME;
         else if (this._haveFingerprintReader)
             this._defaultService = FINGERPRINT_SERVICE_NAME;